// 云函数入口文件
// 删除文件
const cloud = require('wx-server-sdk')

cloud.init({
  env: cloud.DYNAMIC_CURRENT_ENV
})


// 云函数入口函数
exports.main = async (event, context) => {
  var fileid="cloud://linjiaan-daidai-1gqqojy38f85b825.6c69-linjiaan-daidai-1gqqojy38f85b825-1303839245/"+event.fileid
  const fileIDs = new Array()
  fileIDs.push(fileid)
  const result = await cloud.deleteFile({
    fileList: fileIDs,
  })
  return  result.fileList
}